.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../../public/bg.webp") no-repeat center center fixed;
  background-size: cover;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: 8px;
  background-color: rgba(250, 251, 252, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-box h2 {
  margin: 0 0 30px;
  text-align: center;
  color: #272e3b;
  font-weight: 500;
}

.input-group {
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border-radius: 4px;
  border: 1px solid #f4f5f7;
  background-color: #f4f5f7;
  outline: none;
  color: #8a92a6;
  transition: all 0.3s;
  box-sizing: border-box;
}

.input-group input:hover {
  background-color: #e5e6eb;
  border: 1px solid #e5e6eb;
}

.input-group input:focus {
  background-color: #ffffff;
  border: 1px solid #272e3b;
  color: #272e3b;
}

.login-button {
  width: 100%;
  height: 40px;
  background-color: #272e3b;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #3a4356;
}

/* 暗黑模式适配 */
body.dark-mode .login-container {
  /* 除原来的背景色设置，保持背景图片显示 */
}

body.dark-mode .login-box {
  background-color: rgba(34, 34, 34, 0.9);
}

body.dark-mode .login-box h2 {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .input-group input {
  background-color: #222222;
  border: 1px solid #222222;
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .input-group input:hover {
  background-color: #303030;
  border: 1px solid #303030;
}

body.dark-mode .input-group input:focus {
  background-color: #3d3d3d;
  border: 1px solid #3d3d3d;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .login-box {
    margin: 0 20px;
  }
}

.github-link {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.github-link a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.github-link a:hover {
  color: #666;
}

.github-logo {
  width: 24px;
  height: 24px;
}
